xenstore: add memory allocation debugging capability
authorJuergen Gross <jgross@suse.com>
Tue, 19 Jul 2016 12:08:18 +0000 (14:08 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 19 Jul 2016 13:06:41 +0000 (14:06 +0100)
commit4a6ddd21d9850eca30776aa8bf308061ff01f8e6
tree71081d59b39b5abefd012c1d6b6ce05db3ea697f
parentd5052ad6154256455aa2f9a603103ede61dae4b1
xenstore: add memory allocation debugging capability

Add support for debugging memory allocation statistics to xenstored.
Specifying "-M <file>" on the command line will enable the feature.
Whenever xenstored receives SIGUSR1 it will dump out a full talloc
report to <file>. This helps finding e.g. memory leaks in xenstored.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenstore/xenstored_core.c